package org.sgx.dao.test.test1;

import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import org.sgx.dao.test.test1.testModel.Leaf;
import org.sgx.dao.test.test1.testModel.Tree;
import org.sgx.dao.util.BeanFormatException;
import org.sgx.dao.util.BeanUtil;

import junit.framework.TestCase;

public class BeanUtilTest1 extends TestCase {
public void test1() throws IllegalArgumentException, BeanFormatException, IllegalAccessException, InvocationTargetException {

	Leaf leaf1 = new Leaf("green", new Date()), 
		leaf2 = new Leaf("brown", new Date());
	Tree tree1 = new Tree("poplar"), 
		tree2 = new Tree("pine-tree");
	
	Long l = (Long) BeanUtil.getProperty(leaf1, "leafId");
//	System.out.println(l);
	assertEquals(null, leaf1.getLeafId());
	
	
}
}
